package cheme.ProcessModel.ProcessUnits;

import java.io.Serializable;

import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Text;

import cheme.ProcessModel.IModelElement;
import cheme.ProcessModel.XmlHelper;
import cheme.ProcessModel.Visitors.IModelVisitor;

public class Separator extends ProcessUnit implements Serializable
{
	/*
	 * Serialization version identifier. (Set to default for now)
	 */
	
	private static final long serialVersionUID = 1L;
	
	/*
	 * Needed for simple factory creation via Class.newInstance(). So don't remove this huh?
	 */
	public Separator()
	{
		this((IModelElement)null);
	}
	
	public Separator(IModelElement parent)
	{
		super(parent);
		initializeStreamCharacteristics(1, UNLIMITED);
	}
	
	public Separator(Element xmlDoc)
	{
		super(xmlDoc);
		initializeStreamCharacteristics(1, UNLIMITED);
	}
	
	public Object accept(IModelVisitor ruleChecker)
	{
		return ruleChecker.visit(this);
	}
	
	public String toXml()
	{
		return super.toXml("Separator");
	}
}
